package cn.cs.mapper;

import cn.cs.pojo.AdBanner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdBannerMapper {

     public AdBanner getAdbannerById(@Param(value = "id") String id)throws Exception;

     public List<AdBanner>	getAdbannerListByMap(Map<String, Object> param)throws Exception;

     public Integer getAdbannerCountByMap(Map<String, Object> param)throws Exception;

     public Integer insertAdbanner(AdBanner adbanner)throws Exception;

     public Integer updateAdbanner(AdBanner adbanner)throws Exception;

     public Integer deleteAdbannerById(@Param(value = "id") String id)throws Exception;

     public List<AdBanner> getAllAdBanners(String type);
}
